package com.ruoyi.resource.service.Impl;

import com.ruoyi.resource.mapper.FriendMapper;
import com.ruoyi.resource.service.FriendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author OpenACloud
 * @create 2024/6/11 9:20
 */
@Service
public class FriendServiceImpl implements FriendService {

    @Resource
    private FriendMapper friendMapper;

    @Override
    public void addFriend(Long sendId, Long receiveId, String receiveName) {
        friendMapper.addFriend(sendId, receiveId, receiveName);
    }

    @Override
    public void deleteFriend(Long sendId, Long receiveId) {
        friendMapper.deleteFriend(sendId, receiveId);
    }
}
